<?php

namespace App\Http\Controllers\View;

use Illuminate\Http\Request;

use App\Http\Requests;
//use App\Http\Controllers\Controller;
use App\Entity\Category;

class BookController extends CommonController
{

    public function toCategory($value = '')
    {
        $categorys = Category:: where('parent_id', '=', 0)->get();
//        dd($categorys);
        return view('category')->with('categorys', $categorys);
    }

}
